package net.sky.oa.service.system.impl;

import java.util.List;

import javax.annotation.Resource;

import net.sky.oa.dao.system.SysSchoolDao;
import net.sky.oa.model.SysSchool;
import net.sky.oa.service.system.SysSchoolService;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.htsoft.core.service.impl.BaseServiceImpl;

@Service
@Transactional
public class SysSchoolServiceImpl extends BaseServiceImpl<SysSchool> implements SysSchoolService {
	private SysSchoolDao dao;

	public SysSchoolServiceImpl() {}
	
	public SysSchoolServiceImpl(SysSchoolDao dao) {
		super(dao);
		this.dao = dao;
	}

	@Resource
	public void setDao(SysSchoolDao dao) {
		super.setDao(dao);
		this.dao = dao;
	}
	
	public List<SysSchool> findAllSchool() {
		return this.dao.findAllSchool();
	}
	
	public List<SysSchool> comboSch(){
		return this.dao.comboSch();
	}
	
	@Transactional(readOnly = true)
	public List<SysSchool> findByName(String name) {
		return this.dao.findByName(name);
	}
}